/*
* $Id: GLWin.h 133 2010-08-16 16:33:49Z volok-aleksej@yandex.ru $
*
* Copyright 2010 by Alexey Volokitin
* All rights reserved
*
*/
#ifndef _GL_WIN_H_
#define _GL_WIN_H_

#include "DialogWnd.h"
#include "Visual/Wnd.h"
#include "Visual/Drawers/STreeDrawer/STreeDrawer.h"

class CGLWin : public CWnd, public CWndImpl, public CDialogWnd
{
	CSTreeDrawer m_streeDrawer;
protected:
	void PaintInfo(CDC* dc, CRect rect);
	void SendNotifySel(int nId);
	void ScrollUpdate(int sizeY);
protected:
	DECLARE_MESSAGE_MAP();
	afx_msg void OnPaint();
	afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg LRESULT OnButtonClick(WPARAM wParam, LPARAM lParam);
public:
	CGLWin();
	virtual ~CGLWin();
public:
	virtual void WindowCreate(CWnd* pParent);
	virtual	void WindowDestroy();
	virtual void SetQueenBeeId(int nId);
	virtual void SetSelectionData(unsigned long data);
	virtual void Save();
};

#endif/*_GL_WIN_H_*/